import TDbStorage from './TDbStorage';

class Userinfo {
  userinfo: any;
  constructor(name: string) {
    this.userinfo = new TDbStorage(name);
  }
  set(value: USER.localInfo) {
    return this.userinfo.set({
      name: 'info',
      path: '',
      value: value,
    });
  }
  get(): USER.localInfo | undefined {
    return this.userinfo.get({
      name: 'info',
    });
  }
}

export default new Userinfo('xjcuninfo');
